package com.jzo2o.customer.controller.agency;


import com.jzo2o.api.foundations.dto.response.ServeItemSimpleResDTO;
import com.jzo2o.api.foundations.dto.response.ServeTypeSimpleResDTO;
import com.jzo2o.customer.model.domain.ServeProviderInfo;
import com.jzo2o.customer.model.dto.request.AgencyCertificationAuditAddReqDTO;
import com.jzo2o.customer.model.dto.request.ServeSkillAddReqDTO;
import com.jzo2o.customer.model.dto.response.ResponseDTO;
import com.jzo2o.customer.model.dto.response.ServeSkillCategoryResDTO;
import com.jzo2o.customer.service.ICertificationAuditService;
import com.jzo2o.customer.service.IServeSkillService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 服务技能表 前端控制器
 * </p>
 *
 * @author itcast
 * @since 2023-07-18
 */
@RestController("agencyCertificationAuditController")
@RequestMapping("/agency/agency-certification-audit")
@Api(tags = "机构端 - 服务技能相关接口")
public class CertificationAuditController {
    @Resource
    private ICertificationAuditService certificationAuditService;
    /**
     * 机构提交认证申请
     * @param agencyCertificationAuditAddReqDTO
     */
    @PostMapping
    @ApiOperation("机构提交认证申请")
    public void certificationAudit(@RequestBody AgencyCertificationAuditAddReqDTO  agencyCertificationAuditAddReqDTO) {
        certificationAuditService.certificationAudit(agencyCertificationAuditAddReqDTO);
    }
    /**
     * 查询最新的驳回原因
     */
    @GetMapping("/rejectReason")
    @ApiOperation("查询最新的驳回原因")
    public ResponseDTO getRejectReason() {
      return  certificationAuditService.getRejectReason();

    }


}
